function i(i, t, d) {
    return t in i ? Object.defineProperty(i, t, {
        value: d,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : i[t] = d, i;
}

var t, d = null, n = require("common/common.js");

Page((t = {
    data: {
        f_title: n.config.appData.f_title,
        s_title: n.config.appData.s_title,
        BannerAd: n.config.BannerAd,
        loading: !1,
        number: 0,
        nameType: [ "安卓Q区", "安卓微区", "苹果Q区", "苹果微区" ],
        kongBaiData: [ "⁠", "⁡", "⁢", "⁣", "​", "　", " " ],
        shuruNu: "",
        cfm: [ "⁠", "⁡", "⁢", "⁣", "​" ],
        upFhRandom: "",
        imageWidth: wx.getSystemInfoSync().windowWidth,
        Topimg: [ "https://wq.qyyh.xyz/xcx/xcxtz/wzry/lb/1.jpg", "https://wq.qyyh.xyz/xcx/xcxtz/wzry/lb/2.jpg", "https://wq.qyyh.xyz/xcx/xcxtz/wzry/lb/3.jpg", "https://wq.qyyh.xyz/xcx/xcxtz/wzry/lb/4.jpg" ],
        picurl: "https://game.gtimg.cn/images/yxzj/img201606/heroimg/",
        herolist: [ {
            yxm: "廉颇",
            picid: "105",
            yxid: "77"
        }, {
            yxm: "小乔",
            picid: "106",
            yxid: "50"
        }, {
            yxm: "赵云",
            picid: "107",
            yxid: "27"
        }, {
            yxm: "墨子",
            picid: "108",
            yxid: "56"
        }, {
            yxm: "妲己",
            picid: "109",
            yxid: "12"
        }, {
            yxm: "嬴政",
            picid: "110",
            yxid: "73"
        }, {
            yxm: "孙尚香",
            picid: "111",
            yxid: "25"
        }, {
            yxm: "鲁班七号",
            picid: "112",
            yxid: "6"
        }, {
            yxm: "庄周",
            picid: "113",
            yxid: "48"
        }, {
            yxm: "刘禅",
            picid: "114",
            yxid: "38"
        }, {
            yxm: "高渐离",
            picid: "115",
            yxid: "72"
        }, {
            yxm: "阿珂",
            picid: "116",
            yxid: "36"
        }, {
            yxm: "钟无艳",
            picid: "117",
            yxid: "17"
        }, {
            yxm: "孙膑",
            picid: "118",
            yxid: "86"
        }, {
            yxm: "扁鹊",
            picid: "119",
            yxid: "70"
        }, {
            yxm: "白起",
            picid: "120",
            yxid: "84"
        }, {
            yxm: "芈月",
            picid: "121",
            yxid: "83"
        }, {
            yxm: "吕布",
            picid: "123",
            yxid: "41"
        }, {
            yxm: "周瑜",
            picid: "124",
            yxid: "95"
        }, {
            yxm: "夏侯惇",
            picid: "126",
            yxid: "23"
        }, {
            yxm: "甄姬",
            picid: "127",
            yxid: "93"
        }, {
            yxm: "曹操",
            picid: "128",
            yxid: "87"
        }, {
            yxm: "典韦",
            picid: "129",
            yxid: "20"
        }, {
            yxm: "宫本武藏",
            picid: "130",
            yxid: "43"
        }, {
            yxm: "李白",
            picid: "131",
            yxid: "15"
        }, {
            yxm: "马可波罗",
            picid: "132",
            yxid: "26"
        }, {
            yxm: "狄仁杰",
            picid: "133",
            yxid: "49"
        }, {
            yxm: "达摩",
            picid: "134",
            yxid: "62"
        }, {
            yxm: "项羽",
            picid: "135",
            yxid: "5"
        }, {
            yxm: "武则天",
            picid: "136",
            yxid: "104"
        }, {
            yxm: "老夫子",
            picid: "139",
            yxid: "88"
        }, {
            yxm: "关羽",
            picid: "140",
            yxid: "13"
        }, {
            yxm: "貂蝉",
            picid: "141",
            yxid: "29"
        }, {
            yxm: "安琪拉",
            picid: "142",
            yxid: "57"
        }, {
            yxm: "程咬金",
            picid: "144",
            yxid: "37"
        }, {
            yxm: "露娜",
            picid: "146",
            yxid: "61"
        }, {
            yxm: "姜子牙",
            picid: "148",
            yxid: "42"
        }, {
            yxm: "刘邦",
            picid: "149",
            yxid: "76"
        }, {
            yxm: "韩信",
            picid: "150",
            yxid: "1"
        }, {
            yxm: "王昭君",
            picid: "152",
            yxid: "79"
        }, {
            yxm: "兰陵王",
            picid: "153",
            yxid: "10"
        }, {
            yxm: "花木兰",
            picid: "154",
            yxid: "54"
        }, {
            yxm: "张良",
            picid: "156",
            yxid: "60"
        }, {
            yxm: "不知火舞",
            picid: "157",
            yxid: "22"
        }, {
            yxm: "娜可露露",
            picid: "162",
            yxid: "71"
        }, {
            yxm: "橘右京",
            picid: "163",
            yxid: "82"
        }, {
            yxm: "亚瑟",
            picid: "166",
            yxid: "45"
        }, {
            yxm: "孙悟空",
            picid: "167",
            yxid: "7"
        }, {
            yxm: "牛魔",
            picid: "168",
            yxid: "35"
        }, {
            yxm: "后羿",
            picid: "169",
            yxid: "9"
        }, {
            yxm: "刘备",
            picid: "170",
            yxid: "58"
        }, {
            yxm: "张飞",
            picid: "171",
            yxid: "78"
        }, {
            yxm: "李元芳",
            picid: "173",
            yxid: "16"
        }, {
            yxm: "虞姬",
            picid: "174",
            yxid: "28"
        }, {
            yxm: "钟馗",
            picid: "175",
            yxid: "14"
        }, {
            yxm: "成吉思汗",
            picid: "177",
            yxid: "47"
        }, {
            yxm: "杨戬",
            picid: "178",
            yxid: "69"
        }, {
            yxm: "雅典娜",
            picid: "183",
            yxid: "98"
        }, {
            yxm: "蔡文姬",
            picid: "184",
            yxid: "74"
        }, {
            yxm: "太乙真人",
            picid: "186",
            yxid: "91"
        }, {
            yxm: "哪吒",
            picid: "180",
            yxid: "102"
        }, {
            yxm: "诸葛亮",
            picid: "190",
            yxid: "51"
        }, {
            yxm: "黄忠",
            picid: "192",
            yxid: "40"
        }, {
            yxm: "大乔",
            picid: "191",
            yxid: "66"
        }, {
            yxm: "东皇太一",
            picid: "187",
            yxid: "81"
        }, {
            yxm: "干将莫邪",
            picid: "182",
            yxid: "39"
        }, {
            yxm: "鬼谷子",
            picid: "189",
            yxid: "63"
        }, {
            yxm: "铠",
            picid: "193",
            yxid: "4"
        }, {
            yxm: "百里守约",
            picid: "196",
            yxid: "21"
        }, {
            yxm: "百里玄策",
            picid: "195",
            yxid: "2"
        }, {
            yxm: "苏烈",
            picid: "194",
            yxid: "94"
        }, {
            yxm: "梦奇",
            picid: "198",
            yxid: "80"
        }, {
            yxm: "女娲",
            picid: "179",
            yxid: "96"
        }, {
            yxm: "明世隐",
            picid: "501",
            yxid: "59"
        }, {
            yxm: "公孙离",
            picid: "199",
            yxid: "32"
        }, {
            yxm: "杨玉环",
            picid: "176",
            yxid: "90"
        }, {
            yxm: "裴擒虎",
            picid: "502",
            yxid: "44"
        }, {
            yxm: "奕星",
            picid: "197",
            yxid: "103"
        }, {
            yxm: "狂铁",
            picid: "503",
            yxid: "24"
        }, {
            yxm: "米莱迪",
            picid: "504",
            yxid: "30"
        }, {
            yxm: "元歌",
            picid: "125",
            yxid: "52"
        }, {
            yxm: "孙策",
            picid: "510",
            yxid: "11"
        }, {
            yxm: "司马懿",
            picid: "137",
            yxid: "65"
        }, {
            yxm: "盾山",
            picid: "509",
            yxid: "67"
        }, {
            yxm: "伽罗",
            picid: "508",
            yxid: "18"
        }, {
            yxm: "沈梦溪",
            picid: "312",
            yxid: "99"
        }, {
            yxm: "李信",
            picid: "507",
            yxid: "64"
        }, {
            yxm: "上官婉儿",
            picid: "513",
            yxid: "8"
        }, {
            yxm: "嫦娥",
            picid: "515",
            yxid: "3"
        }, {
            yxm: "猪八戒",
            picid: "511",
            yxid: "89"
        }, {
            yxm: "盘古",
            picid: "529",
            yxid: "33"
        }, {
            yxm: "瑶",
            picid: "505",
            yxid: "31"
        }, {
            yxm: "云中君",
            picid: "506",
            yxid: "53"
        }, {
            yxm: "耀",
            picid: "522",
            yxid: "19"
        }, {
            yxm: "马超",
            picid: "518",
            yxid: "75"
        }, {
            yxm: "鲁班大师",
            picid: "525",
            yxid: "92"
        }, {
            yxm: "西施",
            picid: "523",
            yxid: "97"
        }, {
            yxm: "蒙犽",
            picid: "524",
            yxid: "68"
        }, {
            yxm: "镜",
            picid: "531",
            yxid: "55"
        }, {
            yxm: "蒙恬",
            picid: "527",
            yxid: "100"
        }, {
            yxm: "阿古朵",
            picid: "533",
            yxid: "85"
        }, {
            yxm: "夏洛特",
            picid: "536",
            yxid: "46"
        }, {
            yxm: "澜",
            picid: "528",
            yxid: "34"
        }, {
            yxm: "司空震",
            picid: "537",
            yxid: "101"
        }, {
            yxm: "艾琳",
            picid: "155",
            yxid: "105"
        }, {
            yxm: "云缨",
            picid: "538",
            yxid: "109"
        } ],
        TabCur: 0
    },
    tabSelect: function(i) {
        this.setData({
            TabCur: i.currentTarget.dataset.id
        });
    },
    click: function(i) {
        var t = i.currentTarget.dataset.heroname, d = i.currentTarget.dataset.heroid;
        wx.navigateTo({
            url: "/pages/AQ/index?hero_name=" + t + "&hero_id=" + d
        });
    },
    click1: function(i) {
        var t = i.currentTarget.dataset.heroname, d = i.currentTarget.dataset.heroid;
        wx.navigateTo({
            url: "/pages/AV/index?hero_name=" + t + "&hero_id=" + d
        });
    },
    click2: function(i) {
        var t = i.currentTarget.dataset.heroname, d = i.currentTarget.dataset.heroid;
        wx.navigateTo({
            url: "/pages/IQ/index?hero_name=" + t + "&hero_id=" + d
        });
    },
    click3: function(i) {
        var t = i.currentTarget.dataset.heroname, d = i.currentTarget.dataset.heroid;
        wx.navigateTo({
            url: "/pages/IV/index?hero_name=" + t + "&hero_id=" + d
        });
    },
    onLoad: function(i) {
        this.first(), this.ads();
    },
    onShow: function() {
        this.getpoints();
    },
    onReady: function() {},
    initPage: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {
        return {
            title: "免费查王者荣耀战力排行榜，助你最低战力上榜！快速拿标！",
            path: "/pages/rename/rename",
            imageUrl: "https://cy.wen1024.com/img/wzzlphb/images/share.png"
        };
    },
    onShareTimeline: function() {
        return {
            title: "免费查王者荣耀战力排行榜，助你最低战力上榜！快速拿标！",
            path: "/pages/rename/rename"
        };
    },
    first: function() {
        var i = this;
        wx.getStorage({
            key: "day_one_1",
            fail: function(i) {
                wx.setStorage({
                    key: "day_one_1",
                    data: 0
                });
            }
        }), wx.getStorage({
            key: "day_one_2",
            fail: function(i) {
                wx.setStorage({
                    key: "day_one_2",
                    data: 0
                });
            }
        }), wx.getStorage({
            key: "points",
            fail: function(t) {
                wx.setStorageSync("points", 3), i.getpoints(), i.points_history();
            }
        });
    },
    points_history: function() {
        var i = this, t = n.nowTime();
        wx.getStorage({
            key: "points_history",
            fail: function(d) {
                i.setData({
                    list_url: {
                        date: t,
                        content: "初次使用",
                        points: "+3"
                    }
                });
                var n = [ i.data.list_url ], n = JSON.stringify(n);
                wx.setStorage({
                    key: "points_history",
                    data: n
                });
            }
        });
    },
    ads: function() {
        var i = this;
        wx.createRewardedVideoAd && ((d = wx.createRewardedVideoAd({
            adUnitId: n.config.VideoAd
        })).onLoad(), d.onError(function(i) {}), d.onClose(function(t) {
            t && t.isEnded ? i.add_2() : wx.showModal({
                title: "温馨提示",
                content: "中途退出无法获得积分奖励哦",
                success: function(t) {
                    t.confirm ? i.openad() : t.cancel && console.log("用户点击取消");
                }
            });
        }));
    },
    openad: function() {
        d ? d.show() : wx.showModal({
            title: "温馨提示",
            content: "您目前微信版本有误，暂不支持观看"
        });
    },
    getpoints: function() {
        var i = this, t = wx.getStorageSync("points");
        i.setData({
            points: t
        });
    },
    points1_history: function() {
        var i = this;
        wx.getStorage({
            key: "points_history",
            success: function(t) {
                var d = JSON.parse(t.data), e = n.nowTime();
                i.setData({
                    list_url: {
                        date: e,
                        content: "打开推荐程序",
                        points: "+1"
                    }
                });
                var c = (c = [ i.data.list_url ]).concat(d), c = JSON.stringify(c);
                wx.setStorage({
                    key: "points_history",
                    data: c
                });
            }
        });
    },
    points2_history: function() {
        var i = this;
        wx.getStorage({
            key: "points_history",
            success: function(t) {
                var d = JSON.parse(t.data), e = n.nowTime();
                i.setData({
                    list_url: {
                        date: e,
                        content: "观看视频",
                        points: "+3"
                    }
                });
                var c = (c = [ i.data.list_url ]).concat(d), c = JSON.stringify(c);
                wx.setStorage({
                    key: "points_history",
                    data: c
                });
            }
        });
    },
    go1: function(i) {
        var t = this;
        wx.navigateToMiniProgram({
            appId: n.config.appData.f_id,
            path: n.config.appData.f_url,
            success: function(i) {
                t.check1();
            },
            fail: function(i) {
                wx.showModal({
                    title: "温馨提示",
                    content: "中途退出无法获得积分奖励哦",
                    success: function(i) {
                        i.confirm ? t.ios() : i.cancel && console.log("用户点击取消");
                    }
                });
            }
        });
    },
    go2: function(i) {
        var t = this;
        wx.navigateToMiniProgram({
            appId: n.config.appData.s_id,
            path: n.config.appData.s_url,
            success: function(i) {
                t.check2();
            },
            fail: function(i) {
                wx.showModal({
                    title: "温馨提示",
                    content: "中途退出无法获得积分奖励哦",
                    success: function(i) {
                        i.confirm ? t.douyin() : i.cancel && console.log("用户点击取消");
                    }
                });
            }
        });
    },
    nowday: function() {
        return new Date().getDate();
    },
    check1: function() {
        var i = this;
        wx.getStorage({
            key: "day_one_1",
            success: function(t) {
                var d = t.data, n = i.nowday();
                d == n ? wx.showToast({
                    title: "今日已领取",
                    icon: "success",
                    duration: 2e3
                }) : (i.add_1(), wx.setStorage({
                    key: "day_one_1",
                    data: n
                }));
            }
        });
    },
    check2: function() {
        var i = this;
        wx.getStorage({
            key: "day_one_2",
            success: function(t) {
                var d = t.data, n = i.nowday();
                d == n ? wx.showToast({
                    title: "今日已领取",
                    icon: "success",
                    duration: 2e3
                }) : (i.add_1(), wx.setStorage({
                    key: "day_one_2",
                    data: n
                }));
            }
        });
    },
    add_2: function() {
        var i = this, t = (t = wx.getStorageSync("points")) + 5;
        wx.setStorageSync("points", t), wx.showToast({
            title: "积分+5",
            icon: "success",
            duration: 2e3
        }), i.getpoints(), i.points2_history();
    },
    add_1: function() {
        var i = this, t = (t = wx.getStorageSync("points")) + 1;
        wx.setStorageSync("points", t), wx.showToast({
            title: "积分+1",
            icon: "success",
            duration: 2e3
        }), i.getpoints(), i.points1_history();
    },
    gohistory: function() {
        wx.navigateTo({
            url: "points_history"
        });
    },
    check: function() {
        var i = this;
        wx.getStorage({
            key: "points",
            success: function(t) {
                if ((d = t.data) < 1) wx.showModal({
                    title: "温馨提示",
                    content: "次数不足，请回到首页顶部领取次数",
                    showCancel: !1,
                    success: function(i) {
                        i.confirm ? wx.navigateBack({
                            url: "/pages/rename/rename"
                        }) : i.cancel && console.log("用户点击取消");
                    }
                }); else {
                    var d = t.data - 1;
                    wx.setStorageSync("points", d), i.points_history(), i.successgo();
                }
            },
            fail: function() {
                wx.showModal({
                    title: "温馨提示",
                    content: "请先领取次数",
                    showCancel: !1,
                    success: function(i) {
                        i.confirm ? wx.navigateBack({
                            url: "/pages/rename/rename"
                        }) : i.cancel && console.log("用户点击取消");
                    }
                });
            }
        });
    }
}, i(t, "points_history", function() {
    var i = this;
    wx.getStorage({
        key: "points_history",
        success: function(t) {
            var d = JSON.parse(t.data), e = n.nowTime();
            i.setData({
                list_url: {
                    date: e,
                    content: "获取密码",
                    points: "-3"
                }
            });
            var c = (c = [ i.data.list_url ]).concat(d), c = JSON.stringify(c);
            wx.setStorage({
                key: "points_history",
                data: c
            });
        }
    });
}), i(t, "successgo", function() {
    this.setData({
        word: "积分扣除成功"
    });
}), t)), wx.createInterstitialAd && ((e = wx.createInterstitialAd({
    adUnitId: "adunit-a2c2bdff627f59a1"
})).onLoad(function() {}), e.onError(function(i) {}), e.onClose(function() {})), 
e && e.show().catch(function(i) {
    console.error(i);
});

var e = null;